import net.dp.Test;


public class Person implements Comparable<Person>{
	
	private int age ;
	
	

	public Person(int age) {
		super();
		this.age = age;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public int compareTo(Person o) {
		int result = -1 ;
		if(this.getAge()>o.getAge()){
			result = 1 ;
		}
		return result ;
	}

	public static void main(String[] args) {
		System.out.println(Test.class.getResource("/"));
	}
	
}
